package com.example.demo;

/**
 * Copyfright(C),2022-2022,复兴元宇科技有限公司
 * FileName:User
 * Author:yz
 * Date:2022/3/11 9:14 上午
 * Description:
 * History:
 * <author>  <time> <version> <desc>
 * 作者       时间    版本      描述
 */
public class User {
    long id;
    String name;
    Integer sex;
    Integer age;

    public User(long id, String name, int sex, int age) {
        setId(id);
        setName(name);
        setSex(sex);
        setAge(age);
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getSex() {
        return sex;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getAge() {
        return age;
    }
}
